package com.lyd.sweet.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 分页查询请求参数
 *
 * @author 木木
 **/
@ApiModel(value = "PageRequest", description = "分页查询对象")
public class PageRequest implements Serializable {

    @ApiModelProperty(value = "请求查询的当前页", example = "1", required = true)
    protected Integer page;

    @ApiModelProperty(value = "请求查询每页大小", example = "10", required = true)
    protected Integer size;

    /**
     * 初始化默认值
     */
    public PageRequest() {
        this.page = 1;
        this.size = 10;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
